<%@ include file="/common/taglibs.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>update function</title>
<link rel="stylesheet" type="text/css"
	href="<c:url value='/styles/${appConfig["csstheme"]}/style.css'/>">
<script src="../js/common.js"></script>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" class="width100">
  <tr>
  	<td style="width:5px; font-size:0px; line-height:0px; background-color:#A5C331;">&nbsp;</td>
    <td class="right_topbar"><bean:message key="manager.common.func.func"/>&nbsp;&nbsp;<bean:message key="button.add"/></td>
  </tr>
</table>
<html:form action="funcAction.html">
	<table border="0" cellspacing="0" cellpadding="10" class="width100">
		<tr>
			<td style="padding-bottom:0px; padding-top:5px;">


			<table border="0" cellspacing="0" cellpadding="5"
				class="width100 listable">


				<tr>

					<td width="110" class="leftd"><font class="listimportant">*</font><bean:message
						key="manager.common.func.name" />:</td>
					<td class="rightd"><html:text property="name" />&nbsp;&nbsp;<font
						color="#FF0000"><html:errors property="name" /></font></td>
				</tr>

				<tr>
					<td width="110" class="leftd"><font class="listimportant">*</font><bean:message
						key="manager.common.func.url" />:</td>
					<td class="rightd"><html:text property="url" />&nbsp;&nbsp;<font
						color="#FF0000"><html:errors property="url" /></font></td>
				</tr>

				<tr>
					<td width="110" class="leftd"><font class="listimportant">*</font><bean:message
						key="manager.common.func.action" />:</td>
					<td class="rightd"><html:text property="action" />&nbsp;&nbsp;<font
						color="#FF0000"><html:errors property="action" /></font></td>
				</tr>

				<tr>
					<td width="110" class="leftd"><bean:message
						key="manager.common.func.memo" />:</td>
					<td class="rightd"><html:textarea property="memo" />&nbsp;&nbsp;<font
						color="#FF0000"><html:errors property="memo" /></font></td>
				</tr>

				<tr>
					<td width="110" class="leftd"><font class="listimportant">*</font><bean:message
						key="manager.common.func.isUsable" />:</td>
					<td class="rightd"><html:radio name="funcForm"
						property="isUsable" value="1">
						<bean:message key="radio.button.yes" />
					</html:radio> <html:radio name="funcForm" property="isUsable" value="0">
						<bean:message key="radio.button.no" />
					</html:radio> &nbsp;&nbsp;<font color="#FF0000"><html:errors
						property="isUsable" /></font></td>
				</tr>

			</table>

			<table border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td class="padding10px">&nbsp;</td>
				</tr>
			</table>

			<table border="0" cellspacing="0" cellpadding="10" class="width100">
				<tr>
					<td style="padding-top:0px;"></td>
				</tr>
			</table>
			<table border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td class="but_left">&nbsp;</td>
					<td class="but_mid"><a href="#"
						onclick="javascript:newSubmit('add');"><bean:message
						key="button.save" /></a></td>
					<td class="but_right">&nbsp;</td>
					<td class="but_kong">&nbsp;</td>

					<td class="but_left">&nbsp;</td>
					<td class="but_mid"><a href="newFuncPage.html"><bean:message
						key="button.reset" /></a></td>
					<td class="but_right">&nbsp;</td>
					<td class="but_kong">&nbsp;</td>

					<td class="but_left">&nbsp;</td>
					<td class="but_mid"><a href="funcAction.html?method=getAll"><bean:message
						key="button.cancel" /></a></td>
					<td class="but_right">&nbsp;</td>
					<td class="but_kong">&nbsp;</td>
				</tr>
			</table>
<input type="hidden" name="method"> 
</html:form> 

<script>
	function aa(){
		var ary = parent.frames["rightdownFrame"].submitData(); 
		document.forms[0].aryId.value = ary;
		alert(document.forms[0].aryId.value);
	}
	
	function newSubmit(method){ 
	    document.forms[0].method.value = method;
	    document.forms[0].submit();
     }
</script>
</body>
</html>
